package com.feige.openfeigh;

import com.feige.constant.Constants;
import com.feige.pojo.User;
import com.feige.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

/**
 * @author feige<br />
 * @ClassName: UserService <br/>
 * @Description: <br/>
 * @date: 2021/8/30 23:42<br/>
 */
@Component
@FeignClient(Constants.XIAOFEI_CLOUD_CLASSROOM_CHAT)
public interface UserService {

    /**
     * 把选了该课程的学生班级设置为默认值
     * @param id
     * @return
     */
    @PutMapping("/chat/user/de/{id}")
    R<User> updateDefault(@PathVariable("id") String id);
}
